var mytab=(function() {
	function sfq(myclass) {
		var bigdivs = document.querySelectorAll(myclass);
		for(var a = 0; a < bigdivs.length; a++) {
			(function(a) {
				var sdiv1 = bigdivs[a].querySelectorAll("ul>div");
				var lis = bigdivs[a].querySelectorAll("ul>div>li");
				var divs = bigdivs[a].querySelectorAll("ul>div>div");
				for(var b = 0; b < sdiv1.length; b++) {
					(function(b) {
						var sdiv1s = sdiv1[b];
						var li = sdiv1s.querySelector("li");
						var div = sdiv1s.querySelector("div");
						li.onclick = function() {
							for(var c = 0; c < lis.length; c++) {
								lis[c].style.backgroundImage = "url(img/right.png)";
								divs[c].style.display = "none";
								sdiv1[c].style.backgroundColor = "gainsboro";
							}
							li.style.backgroundImage = "url(img/bottom.png)";
							div.style.display = "block";
							sdiv1s.style.backgroundColor = "white";
						}
					})(b);
				}
			})(a)
		}
	}
	return {
		a:sfq,
		b:function(){
			console.log("1");
		}
	}
//  return sfq;
})()